package org.jiucheng.magpiebridge.schedule;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

public class ScheduleManager {
    
    private static final ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(2);
    
    public static void schedule(Runnable runnable) {
        scheduledExecutorService.scheduleAtFixedRate(runnable, 30L, 30L, TimeUnit.MICROSECONDS);
    }
}
